3.1439 \(\int (b d+2 c d x)^2 (a+b x+c x^2)^p \, dx\)

Optimal. Leaf size=90 \[ -\frac {2 d^2 (b+2 c x)^3 \left (\frac {1}{4} \left (4 a-\frac {b^2}{c}\right )+\frac {(b+2 c x)^2}{4 c}\right )^{p+1} \, _2F_1\left (1,p+\frac {5}{2};\frac {5}{2};\frac {(b+2 c x)^2}{b^2-4 a c}\right )}{3 \left (b^2-4 a c\right )} \]

[Out]

-2/3*d^2*(2*c*x+b)^3*(a-1/4/c*b^2+1/4*(2*c*x+b)^2/c)^(1+p)*hypergeom([1, 5/2+p],[5/2],(2*c*x+b)^2/(-4*a*c+b^2)
)/(-4*a*c+b^2)

________________________________________________________________________________________

Rubi [A]  time = 0.07, antiderivative size = 85, normalized size of antiderivative = 0.94, number of steps used = 3, number of rules used = 3, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {694, 365, 364} \[ \frac {d^2 (b+2 c x)^3 \left (a+b x+c x^2\right )^p \left (1-\frac {(b+2 c x)^2}{b^2-4 a c}\right )^{-p} \, _2F_1\left (\frac {3}{2},-p;\frac {5}{2};\frac {(b+2 c x)^2}{b^2-4 a c}\right )}{6 c} \]

Antiderivative was successfully verified.

[In]

Int[(b*d + 2*c*d*x)^2*(a + b*x + c*x^2)^p,x]

[Out]

(d^2*(b + 2*c*x)^3*(a + b*x + c*x^2)^p*Hypergeometric2F1[3/2, -p, 5/2, (b + 2*c*x)^2/(b^2 - 4*a*c)])/(6*c*(1 -
 (b + 2*c*x)^2/(b^2 - 4*a*c))^p)

Rule 364

Int[((c_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[(a^p*(c*x)^(m + 1)*Hypergeometric2F1[-
p, (m + 1)/n, (m + 1)/n + 1, -((b*x^n)/a)])/(c*(m + 1)), x] /; FreeQ[{a, b, c, m, n, p}, x] &&  !IGtQ[p, 0] &&
 (ILtQ[p, 0] || GtQ[a, 0])

Rule 365

Int[((c_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Dist[(a^IntPart[p]*(a + b*x^n)^FracPart[p])
/(1 + (b*x^n)/a)^FracPart[p], Int[(c*x)^m*(1 + (b*x^n)/a)^p, x], x] /; FreeQ[{a, b, c, m, n, p}, x] &&  !IGtQ[
p, 0] &&  !(ILtQ[p, 0] || GtQ[a, 0])

Rule 694

Int[((d_) + (e_.)*(x_))^(m_)*((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Dist[1/e, Subst[Int[x^m*(
a - b^2/(4*c) + (c*x^2)/e^2)^p, x], x, d + e*x], x] /; FreeQ[{a, b, c, d, e, m, p}, x] && NeQ[b^2 - 4*a*c, 0]
&& EqQ[2*c*d - b*e, 0]

Rubi steps

\begin {align*} \int (b d+2 c d x)^2 \left (a+b x+c x^2\right )^p \, dx &=\frac {\operatorname {Subst}\left (\int x^2 \left (a-\frac {b^2}{4 c}+\frac {x^2}{4 c d^2}\right )^p \, dx,x,b d+2 c d x\right )}{2 c d}\\ &=\frac {\left (2^{-1+2 p} \left (a+b x+c x^2\right )^p \left (4+\frac {(b d+2 c d x)^2}{\left (a-\frac {b^2}{4 c}\right ) c d^2}\right )^{-p}\right ) \operatorname {Subst}\left (\int x^2 \left (1+\frac {x^2}{4 \left (a-\frac {b^2}{4 c}\right ) c d^2}\right )^p \, dx,x,b d+2 c d x\right )}{c d}\\ &=\frac {2^{-1+2 p} d^2 (b+2 c x)^3 \left (a+b x+c x^2\right )^p \left (4-\frac {4 (b+2 c x)^2}{b^2-4 a c}\right )^{-p} \, _2F_1\left (\frac {3}{2},-p;\frac {5}{2};\frac {(b+2 c x)^2}{b^2-4 a c}\right )}{3 c}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.03, size = 92, normalized size = 1.02 \[ \frac {d^2 2^{-2 p-1} (b+2 c x)^3 (a+x (b+c x))^p \left (\frac {c (a+x (b+c x))}{4 a c-b^2}\right )^{-p} \, _2F_1\left (\frac {3}{2},-p;\frac {5}{2};\frac {(b+2 c x)^2}{b^2-4 a c}\right )}{3 c} \]

Antiderivative was successfully verified.

[In]

Integrate[(b*d + 2*c*d*x)^2*(a + b*x + c*x^2)^p,x]

[Out]

(2^(-1 - 2*p)*d^2*(b + 2*c*x)^3*(a + x*(b + c*x))^p*Hypergeometric2F1[3/2, -p, 5/2, (b + 2*c*x)^2/(b^2 - 4*a*c
)])/(3*c*((c*(a + x*(b + c*x)))/(-b^2 + 4*a*c))^p)

________________________________________________________________________________________

fricas [F]  time = 1.20, size = 0, normalized size = 0.00 \[ {\rm integral}\left ({\left (4 \, c^{2} d^{2} x^{2} + 4 \, b c d^{2} x + b^{2} d^{2}\right )} {\left (c x^{2} + b x + a\right )}^{p}, x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((2*c*d*x+b*d)^2*(c*x^2+b*x+a)^p,x, algorithm="fricas")

[Out]

integral((4*c^2*d^2*x^2 + 4*b*c*d^2*x + b^2*d^2)*(c*x^2 + b*x + a)^p, x)

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (2 \, c d x + b d\right )}^{2} {\left (c x^{2} + b x + a\right )}^{p}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((2*c*d*x+b*d)^2*(c*x^2+b*x+a)^p,x, algorithm="giac")

[Out]

integrate((2*c*d*x + b*d)^2*(c*x^2 + b*x + a)^p, x)

________________________________________________________________________________________

maple [F]  time = 1.26, size = 0, normalized size = 0.00 \[ \int \left (2 c d x +b d \right )^{2} \left (c \,x^{2}+b x +a \right )^{p}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((2*c*d*x+b*d)^2*(c*x^2+b*x+a)^p,x)

[Out]

int((2*c*d*x+b*d)^2*(c*x^2+b*x+a)^p,x)

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (2 \, c d x + b d\right )}^{2} {\left (c x^{2} + b x + a\right )}^{p}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((2*c*d*x+b*d)^2*(c*x^2+b*x+a)^p,x, algorithm="maxima")

[Out]

integrate((2*c*d*x + b*d)^2*(c*x^2 + b*x + a)^p, x)

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.01 \[ \int {\left (b\,d+2\,c\,d\,x\right )}^2\,{\left (c\,x^2+b\,x+a\right )}^p \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((b*d + 2*c*d*x)^2*(a + b*x + c*x^2)^p,x)

[Out]

int((b*d + 2*c*d*x)^2*(a + b*x + c*x^2)^p, x)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ d^{2} \left (\int b^{2} \left (a + b x + c x^{2}\right )^{p}\, dx + \int 4 c^{2} x^{2} \left (a + b x + c x^{2}\right )^{p}\, dx + \int 4 b c x \left (a + b x + c x^{2}\right )^{p}\, dx\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((2*c*d*x+b*d)**2*(c*x**2+b*x+a)**p,x)

[Out]

d**2*(Integral(b**2*(a + b*x + c*x**2)**p, x) + Integral(4*c**2*x**2*(a + b*x + c*x**2)**p, x) + Integral(4*b*
c*x*(a + b*x + c*x**2)**p, x))

________________________________________________________________________________________